﻿<%@ Control Language="C#"  %>
<%@ Register Assembly="Swaf.Gui.AspNet2" Namespace="Swaf.Gui.AspNet2" TagPrefix="swf" %>
	<div class="articlebox">
	<%HtmlBlock method = "processList"; %>
		<%Conditional on="Depth==0"; %>
		    <div class="articleboxroot">
        		<div class="Title">
		    	    <asp:Label id="title" runat="server" />
		    	</div>
				<div class="MediaArea">
					<asp:Image ID="primaryPicture_name" runat="server" 
						ImageUrl="/$mediaCacheName$/$imageRes$/$primaryPicture.name$" 
						EnableViewState="false" />
				</div>
				<div class="Summary"><swf:ReadOnlyText ID="summary" runat="server" /></div>
			</div>
			<div class="clearer"></div>
		<%EndConditional; %>
		<%Conditional on="Depth==1"; %>
		<div class="articlebox0">
			<table>
			<tr>
				<td style="vertical-align:top">
					<div class="MediaArea">
					<asp:HyperLink ID="primaryPicture_name" runat="server" 
						ImageUrl="/$mediaCacheName$/$imageRes$/$primaryPicture.name$" 
						EnableViewState="false"  NavigateUrl="$navLink$"/>
					</div>
				</td>
				<td style="vertical-align:top">
					<div class="Title"><asp:HyperLink id="title" runat="server"  NavigateUrl="$navLink$"/></div>
					<div class="Summary"><swf:ReadOnlyText ID="summary" runat="server" /></div>
					<div class="ReadMore"><asp:HyperLink id="counts_author" runat="server"  NavigateUrl="$navLink$" Text="$readMoreText$" /></div>
				</td>
			</tr>
			</table>
		</div>	
		<%EndConditional; %>
    <%EndHtmlBlock; %>
    </div>
